package lysjmaster.base.auth.repository;

import lysjmaster.base.auth.domain.User;
import lysjmaster.base.common.spring.base.BaseRepository;

import java.util.List;

/**
 * @author Created by zk on 2019-12-04 14:27
 * @description
 */
public interface UserRepository extends BaseRepository<User> {
    User findByUsername(String name);

    boolean existsByUsername(String username);

    List<User> findByRoleIdIn(Iterable<String> roleIds);
}
